﻿using BielskoNoca.DAL.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BielskoNoca.DAL.Abstract
{
    public interface IContestRepository: IRepositoryBase<Contest>, IEntityRepository<Contest>
    {
        int AddRunner(Contest contest, RunnerInfo info, Runner runner);
        Category AddCategory(Contest contest, Category category);
        IList<Category> GetCategories(int contestId);
        Category GetCategoryById(int contestId, int categoryId);

        Contest GetByUrl(string url);
    }
}
